package com.cdks.wuxiu.api.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdks.wuxiu.api.model.dto.UserScoreDTO;
import com.cdks.wuxiu.entity.mysql.UserScoreInfo;

/**
 * 用户积分信息表 Mapper 接口
 */
public interface UserScoreInfoMapper extends BaseMapper<UserScoreInfo> {
    UserScoreDTO getBalance(@Param("userId") long userId, @Param("expire") long expire);
    List<UserScoreInfo> getList(@Param("userId") long userId, @Param("start") long start, @Param("stop") long stop, @Param("offset") long offset, @Param("pageSize") long pageSize); 
    int cleanBalance(@Param("userId") long userId, @Param("start") long start, @Param("stop") long stop, @Param("count") long count, @Param("expire") long expire);
}
